package com.ran;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;


/**
 * SpringBoot方式启动类
 *
 * @author ran
 * @Date 2024/5/08 10:00
 */
@SpringBootApplication
@ServletComponentScan//防止 @WebListener 无效
public class Application  {
    private final static Logger logger = LoggerFactory.getLogger(Application.class);

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        logger.info("项目成功启动");
    }

}
